<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>File Uploader</title>
</head>
<body>
	<h1>Escolha o arquivo e clique em "Upload"</h1>
	<form action="UploadServlet" method="post" enctype="multipart/form-data">
		<input type="file" name="Filedata" size="50" />
		<br />
		<br />
		<input type="submit" value="Upload" />
	</form>
	
	<h3>
	<%=request.getAttribute("fileName") != null ? "Nome: " +  request.getAttribute("fileName") : "" %>
	</h3>
	<h3>
	<%=request.getAttribute("filePath") != null ? "Pasta: " + request.getAttribute("filePath") : "" %>
	</h3>
	<h3>
	<%=request.getAttribute("fileSize") != null ? "Tamanho: " + request.getAttribute("fileSize") + " bytes" : "" %>
	</h3>
</body>
</html>